package com.kb.design.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 封装表(DesignEncapsulation)实体类
 *
 * @author makejava
 * @since 2024-01-26 10:19:19
 */
@Data
@Accessors(chain = true)
@TableName("design_encapsulation")
public class DesignEncapsulation implements Serializable {
    private static final long serialVersionUID = 769205480723505616L;

    @TableId(type = IdType.AUTO)
    private Long id;
    private Long parentId;
    /**
     * 责任人
     */
    private String responsiblePerson;
    private String responsiblePersonName;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 更新人
     */

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    
    private String updateBy;
    private String updateByName;
    private String remark;
    /**
     * 订单id
     */
    private Long orderId;
    /**
     * 完成率
     */
    private Integer completionRate;
    /**
     * 附件
     */
    @TableField(exist = false)
    private String encapsulationUrl;
    /**
     * 项目id
     */
    private Long projectId;
    @TableField(exist = false)
    private String projectName;
    /**
     * 是否完成 0:未完成,1:完成
     */
    private Integer isComplete;
    /**
     * 完成时间
     */
    private LocalDateTime completeDate;



}

